package com.example.springsecurity.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
//@RequestMapping("/Security")
public class IndexController {

    @RequestMapping({"/","/index"})
    public String Index(){
        return "index";
    }

    @RequestMapping("/toLevel1")
    public String tiLevel1(){
        return "/views/level1/1";
    }
    @RequestMapping("/toLevel2")
    public String tiLevel2(){
        return "/views/level2/2";
    }
    @RequestMapping("/toLevel3")
    public String tiLevel3(){
        return "/views/level3/3";
    }

}
